<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>aaa: xfunction.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">aaa
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">xfunction.h</div></div>
</div><!--header-->
<div class="contents">
<a href="xfunction_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#ifndef XFUNCTION_H</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#define XFUNCTION_H</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span> </div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &quot;<a class="code" href="xcoil_8h.html">xcoil.h</a>&quot;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#include &quot;<a class="code" href="xregister_8h.html">xregister.h</a>&quot;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="preprocessor">#include &lt;QDebug&gt;</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"><a class="line" href="class_x_function.html">    8</a></span><span class="keyword">class </span><a class="code hl_class" href="class_x_function.html">XFunction</a></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span>{</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span>    <a class="code hl_function" href="class_x_function.html#a2ea9aa5fad55053a266532e303cfc159">XFunction</a>();</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span>    <span class="keyword">explicit</span> <a class="code hl_function" href="class_x_function.html#a2ea9aa5fad55053a266532e303cfc159">XFunction</a>(<a class="code hl_class" href="class_x_coil.html">XCoil</a> *<a class="code hl_variable" href="class_x_function.html#a72afc9752303dc68c81b09b5f97cb2dd">coilA</a>);</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span>    <span class="keyword">explicit</span> <a class="code hl_function" href="class_x_function.html#a2ea9aa5fad55053a266532e303cfc159">XFunction</a>(<a class="code hl_class" href="class_x_coil.html">XCoil</a> *<a class="code hl_variable" href="class_x_function.html#a72afc9752303dc68c81b09b5f97cb2dd">coilA</a>, <a class="code hl_class" href="class_x_coil.html">XCoil</a> *<a class="code hl_variable" href="class_x_function.html#a08f8b714a87a0af9c504bdbbc9fdbf54">coilB</a>);</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span>    <span class="keyword">explicit</span> <a class="code hl_function" href="class_x_function.html#a2ea9aa5fad55053a266532e303cfc159">XFunction</a>(<a class="code hl_class" href="class_x_register.html">XRegister</a> *<a class="code hl_variable" href="class_x_function.html#a3be0798e6de584f2e33f6bfd76a85792">registerA</a>, <span class="keywordtype">double</span> value);</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span>    <span class="keyword">explicit</span> <a class="code hl_function" href="class_x_function.html#a2ea9aa5fad55053a266532e303cfc159">XFunction</a>(<a class="code hl_class" href="class_x_register.html">XRegister</a> *<a class="code hl_variable" href="class_x_function.html#a3be0798e6de584f2e33f6bfd76a85792">registerA</a>, <a class="code hl_class" href="class_x_register.html">XRegister</a> *<a class="code hl_variable" href="class_x_function.html#a9f7e106f034c0d0d1a8613580e84ef4d">registerB</a>);</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>    <span class="keyword">explicit</span> <a class="code hl_function" href="class_x_function.html#a2ea9aa5fad55053a266532e303cfc159">XFunction</a>(<a class="code hl_class" href="class_x_register.html">XRegister</a> *<a class="code hl_variable" href="class_x_function.html#a3be0798e6de584f2e33f6bfd76a85792">registerA</a>, <a class="code hl_class" href="class_x_register.html">XRegister</a> *<a class="code hl_variable" href="class_x_function.html#a9f7e106f034c0d0d1a8613580e84ef4d">registerB</a>, <span class="keywordtype">int</span> <a class="code hl_variable" href="class_x_function.html#a0baa2c9f01fa224aaffc074edcc7419e">registerNum</a>);</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span>    <a class="code hl_function" href="class_x_function.html#a55161b0fc7cc2da9ae06c91e83d8abd8">~XFunction</a>();</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span>    <span class="comment">//coil</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_x_function.html#a0a73e9981897a36d241788e45eea4ec8">setCoil</a>();</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_x_function.html#a3c5f1b12925b0541c6e750932453d409">resetCoil</a>();</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_x_function.html#a84536aef96210b6f4fe526d7fc663f76">reverseCoil</a>();</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_x_function.html#a3e178f1348a33ae4de6323e2e106270e">copyCoil</a>();</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>    <span class="comment">//register</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_x_function.html#ade1e88b58d8e44f150a850e68ee1895f">setRegister</a>();</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>    <span class="keywordtype">void</span> <a class="code hl_function" href="class_x_function.html#a3462a6a8b61b631ac51eb192f5712d2d">copyRegister</a>();</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span><span class="comment">//    void copyRegisterBlock();</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span><span class="keyword">private</span>:</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="class_x_function.html#a72afc9752303dc68c81b09b5f97cb2dd">   33</a></span>    <a class="code hl_class" href="class_x_coil.html">XCoil</a> *<a class="code hl_variable" href="class_x_function.html#a72afc9752303dc68c81b09b5f97cb2dd">coilA</a>;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="class_x_function.html#a08f8b714a87a0af9c504bdbbc9fdbf54">   34</a></span>    <a class="code hl_class" href="class_x_coil.html">XCoil</a> *<a class="code hl_variable" href="class_x_function.html#a08f8b714a87a0af9c504bdbbc9fdbf54">coilB</a>;</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="class_x_function.html#a3be0798e6de584f2e33f6bfd76a85792">   36</a></span>    <a class="code hl_class" href="class_x_register.html">XRegister</a> *<a class="code hl_variable" href="class_x_function.html#a3be0798e6de584f2e33f6bfd76a85792">registerA</a>;</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="class_x_function.html#a9f7e106f034c0d0d1a8613580e84ef4d">   37</a></span>    <a class="code hl_class" href="class_x_register.html">XRegister</a> *<a class="code hl_variable" href="class_x_function.html#a9f7e106f034c0d0d1a8613580e84ef4d">registerB</a>;</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="class_x_function.html#a9378664dfc1b505a900e892b78f90139">   38</a></span>    <span class="keywordtype">double</span> <a class="code hl_variable" href="class_x_function.html#a9378664dfc1b505a900e892b78f90139">setValue</a>;</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="class_x_function.html#a0baa2c9f01fa224aaffc074edcc7419e">   39</a></span>    <span class="keywordtype">int</span> <a class="code hl_variable" href="class_x_function.html#a0baa2c9f01fa224aaffc074edcc7419e">registerNum</a>;</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>};</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span> </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="comment">//声明XFunction的函数指着</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="xfunction_8h.html#afef433ae7eaa4880713115352c9e3718">   43</a></span><span class="keyword">typedef</span> void (<a class="code hl_class" href="class_x_function.html">XFunction</a>::*<a class="code hl_typedef" href="xfunction_8h.html#afef433ae7eaa4880713115352c9e3718">Function</a>)(void);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="preprocessor">#endif </span><span class="comment">// XFUNCTION_H</span></div>
<div class="ttc" id="aclass_x_coil_html"><div class="ttname"><a href="class_x_coil.html">XCoil</a></div><div class="ttdef"><b>Definition:</b> xcoil.h:11</div></div>
<div class="ttc" id="aclass_x_function_html"><div class="ttname"><a href="class_x_function.html">XFunction</a></div><div class="ttdef"><b>Definition:</b> xfunction.h:9</div></div>
<div class="ttc" id="aclass_x_function_html_a08f8b714a87a0af9c504bdbbc9fdbf54"><div class="ttname"><a href="class_x_function.html#a08f8b714a87a0af9c504bdbbc9fdbf54">XFunction::coilB</a></div><div class="ttdeci">XCoil * coilB</div><div class="ttdef"><b>Definition:</b> xfunction.h:34</div></div>
<div class="ttc" id="aclass_x_function_html_a0a73e9981897a36d241788e45eea4ec8"><div class="ttname"><a href="class_x_function.html#a0a73e9981897a36d241788e45eea4ec8">XFunction::setCoil</a></div><div class="ttdeci">void setCoil()</div><div class="ttdoc">XFunction::setCoil</div><div class="ttdef"><b>Definition:</b> xfunction.cpp:48</div></div>
<div class="ttc" id="aclass_x_function_html_a0baa2c9f01fa224aaffc074edcc7419e"><div class="ttname"><a href="class_x_function.html#a0baa2c9f01fa224aaffc074edcc7419e">XFunction::registerNum</a></div><div class="ttdeci">int registerNum</div><div class="ttdef"><b>Definition:</b> xfunction.h:39</div></div>
<div class="ttc" id="aclass_x_function_html_a2ea9aa5fad55053a266532e303cfc159"><div class="ttname"><a href="class_x_function.html#a2ea9aa5fad55053a266532e303cfc159">XFunction::XFunction</a></div><div class="ttdeci">XFunction()</div><div class="ttdef"><b>Definition:</b> xfunction.cpp:3</div></div>
<div class="ttc" id="aclass_x_function_html_a3462a6a8b61b631ac51eb192f5712d2d"><div class="ttname"><a href="class_x_function.html#a3462a6a8b61b631ac51eb192f5712d2d">XFunction::copyRegister</a></div><div class="ttdeci">void copyRegister()</div><div class="ttdoc">XFunction::copyRegister</div><div class="ttdef"><b>Definition:</b> xfunction.cpp:110</div></div>
<div class="ttc" id="aclass_x_function_html_a3be0798e6de584f2e33f6bfd76a85792"><div class="ttname"><a href="class_x_function.html#a3be0798e6de584f2e33f6bfd76a85792">XFunction::registerA</a></div><div class="ttdeci">XRegister * registerA</div><div class="ttdef"><b>Definition:</b> xfunction.h:36</div></div>
<div class="ttc" id="aclass_x_function_html_a3c5f1b12925b0541c6e750932453d409"><div class="ttname"><a href="class_x_function.html#a3c5f1b12925b0541c6e750932453d409">XFunction::resetCoil</a></div><div class="ttdeci">void resetCoil()</div><div class="ttdoc">XFunction::resetCoil</div><div class="ttdef"><b>Definition:</b> xfunction.cpp:60</div></div>
<div class="ttc" id="aclass_x_function_html_a3e178f1348a33ae4de6323e2e106270e"><div class="ttname"><a href="class_x_function.html#a3e178f1348a33ae4de6323e2e106270e">XFunction::copyCoil</a></div><div class="ttdeci">void copyCoil()</div><div class="ttdoc">XFunction::copyCoil</div><div class="ttdef"><b>Definition:</b> xfunction.cpp:86</div></div>
<div class="ttc" id="aclass_x_function_html_a55161b0fc7cc2da9ae06c91e83d8abd8"><div class="ttname"><a href="class_x_function.html#a55161b0fc7cc2da9ae06c91e83d8abd8">XFunction::~XFunction</a></div><div class="ttdeci">~XFunction()</div><div class="ttdef"><b>Definition:</b> xfunction.cpp:40</div></div>
<div class="ttc" id="aclass_x_function_html_a72afc9752303dc68c81b09b5f97cb2dd"><div class="ttname"><a href="class_x_function.html#a72afc9752303dc68c81b09b5f97cb2dd">XFunction::coilA</a></div><div class="ttdeci">XCoil * coilA</div><div class="ttdef"><b>Definition:</b> xfunction.h:33</div></div>
<div class="ttc" id="aclass_x_function_html_a84536aef96210b6f4fe526d7fc663f76"><div class="ttname"><a href="class_x_function.html#a84536aef96210b6f4fe526d7fc663f76">XFunction::reverseCoil</a></div><div class="ttdeci">void reverseCoil()</div><div class="ttdoc">XFunction::reverseCoil</div><div class="ttdef"><b>Definition:</b> xfunction.cpp:72</div></div>
<div class="ttc" id="aclass_x_function_html_a9378664dfc1b505a900e892b78f90139"><div class="ttname"><a href="class_x_function.html#a9378664dfc1b505a900e892b78f90139">XFunction::setValue</a></div><div class="ttdeci">double setValue</div><div class="ttdef"><b>Definition:</b> xfunction.h:38</div></div>
<div class="ttc" id="aclass_x_function_html_a9f7e106f034c0d0d1a8613580e84ef4d"><div class="ttname"><a href="class_x_function.html#a9f7e106f034c0d0d1a8613580e84ef4d">XFunction::registerB</a></div><div class="ttdeci">XRegister * registerB</div><div class="ttdef"><b>Definition:</b> xfunction.h:37</div></div>
<div class="ttc" id="aclass_x_function_html_ade1e88b58d8e44f150a850e68ee1895f"><div class="ttname"><a href="class_x_function.html#ade1e88b58d8e44f150a850e68ee1895f">XFunction::setRegister</a></div><div class="ttdeci">void setRegister()</div><div class="ttdoc">XFunction::setRegister</div><div class="ttdef"><b>Definition:</b> xfunction.cpp:99</div></div>
<div class="ttc" id="aclass_x_register_html"><div class="ttname"><a href="class_x_register.html">XRegister</a></div><div class="ttdef"><b>Definition:</b> xregister.h:11</div></div>
<div class="ttc" id="axcoil_8h_html"><div class="ttname"><a href="xcoil_8h.html">xcoil.h</a></div></div>
<div class="ttc" id="axfunction_8h_html_afef433ae7eaa4880713115352c9e3718"><div class="ttname"><a href="xfunction_8h.html#afef433ae7eaa4880713115352c9e3718">Function</a></div><div class="ttdeci">void(XFunction::* Function)(void)</div><div class="ttdef"><b>Definition:</b> xfunction.h:43</div></div>
<div class="ttc" id="axregister_8h_html"><div class="ttname"><a href="xregister_8h.html">xregister.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
